package com.bingxue.edu.parent.model.resp;

import com.bingxue.edu.common.enums.ExamTypeEnum;
import com.bingxue.edu.management.education.model.entity.exam.Exam;
import com.mybatisflex.annotation.RelationManyToOne;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;

@Data
@Schema(description = "家长端成绩查询详情返回信息")
public class ParentMyScoreDetailResp {

    @Schema(description = "考试记录id")
    private String examRecordId;

    @Schema(description = "考试id")
    private String examId;

    @Schema(description = "学生id")
    private String studentId;

    @Schema(description = "班级id")
    private String classId;

    @Schema(description = "班级名称")
    private String className;

    @Schema(description = "分数")
    private BigDecimal totalScore;

    @Schema(description = "排名")
    private Integer rank;

    @Schema(description = "学生名称")
    @RelationManyToOne(selfField = "studentId", targetTable = "edu_student", targetField = "id",valueField = "name")
    private String studentName;

    @Schema(description = "考试信息")
    @RelationManyToOne(selfField = "examId", targetTable = "edu_exam", targetField = "id")
    private Exam exam;
}
